package sartoservicesync.entities.presta;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

import org.eclipse.persistence.oxm.annotations.XmlCustomizer;
import org.eclipse.persistence.oxm.annotations.XmlPath;

import sartoservicesync.entities.presta.wrapper.PrestaCustomersWrapper;
import sartoservicesync.entities.presta.wrapper.PrestaMultiObjectWrapper;
import sartoservicesync.entities.presta.wrapper.PrestaCustomerWrapper;
import sartoservicesync.entities.presta.wrapper.PrestaSingleObjectWrapper;
import sartoservicesync.utils.EmptyStringCustomizer;

@XmlRootElement 
@XmlAccessorType(XmlAccessType.FIELD)
@XmlCustomizer(EmptyStringCustomizer.class)
public class PrestaCustomer extends PrestaEntity{
	public final static String FIELDS ="id,lastname,firstname,active,passwd,email";
	
	private String id;
	private String lastname;
	private String firstname;
	private String active;
	private String id_lang;
	private String newsletter_date_add;
	private String ip_registration_newsletter;
	private String last_passwd_gen;
	private String secure_key;
	private String deleted;
	private String passwd;
	private String email;
	private String id_gender;
	private String birthday;
	private String newsletter;
	private String optin;
	private String website;
	private String siret;
	private String ape;
	private String company;
	private String outstanding_allow_amount;
	private String show_public_prices;
	private String statistic;
	private String id_risk;
	private String max_payment_days;
	private String note;
	private String is_guest;
	private String id_shop;
	private String id_shop_group;
	private String date_add;
	private String date_upd;
	
	@Override
	public String toString() {
		return "PrestaCustomer [id=" + id + ", lastname=" + lastname
				+ ", firstname=" + firstname + ", active=" + active + "]";
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getLastname() {
		return lastname;
	}
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	public String getFirstname() {
		return firstname;
	}
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	public String getActive() {
		return active;
	}
	public void setActive(String active) {
		this.active = active;
	}

	public String getId_lang() {
		return id_lang;
	}

	public void setId_lang(String id_lang) {
		this.id_lang = id_lang;
	}

	public String getNewsletter_date_add() {
		return newsletter_date_add;
	}

	public void setNewsletter_date_add(String newsletter_date_add) {
		this.newsletter_date_add = newsletter_date_add;
	}

	public String getIp_registration_newsletter() {
		return ip_registration_newsletter;
	}

	public void setIp_registration_newsletter(String ip_registration_newsletter) {
		this.ip_registration_newsletter = ip_registration_newsletter;
	}

	public String getLast_passwd_gen() {
		return last_passwd_gen;
	}

	public void setLast_passwd_gen(String last_passwd_gen) {
		this.last_passwd_gen = last_passwd_gen;
	}

	public String getSecure_key() {
		return secure_key;
	}

	public void setSecure_key(String secure_key) {
		this.secure_key = secure_key;
	}

	public String getDeleted() {
		return deleted;
	}

	public void setDeleted(String deleted) {
		this.deleted = deleted;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getId_gender() {
		return id_gender;
	}

	public void setId_gender(String id_gender) {
		this.id_gender = id_gender;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getNewsletter() {
		return newsletter;
	}

	public void setNewsletter(String newsletter) {
		this.newsletter = newsletter;
	}

	public String getOptin() {
		return optin;
	}

	public void setOptin(String optin) {
		this.optin = optin;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public String getSiret() {
		return siret;
	}

	public void setSiret(String siret) {
		this.siret = siret;
	}

	public String getApe() {
		return ape;
	}

	public void setApe(String ape) {
		this.ape = ape;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getOutstanding_allow_amount() {
		return outstanding_allow_amount;
	}

	public void setOutstanding_allow_amount(String outstanding_allow_amount) {
		this.outstanding_allow_amount = outstanding_allow_amount;
	}

	public String getShow_public_prices() {
		return show_public_prices;
	}

	public void setShow_public_prices(String show_public_prices) {
		this.show_public_prices = show_public_prices;
	}

	public String getStatistic() {
		return statistic;
	}

	public void setStatistic(String statistic) {
		this.statistic = statistic;
	}

	public String getId_risk() {
		return id_risk;
	}

	public void setId_risk(String id_risk) {
		this.id_risk = id_risk;
	}

	public String getMax_payment_days() {
		return max_payment_days;
	}

	public void setMax_payment_days(String max_payment_days) {
		this.max_payment_days = max_payment_days;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getIs_guest() {
		return is_guest;
	}

	public void setIs_guest(String is_guest) {
		this.is_guest = is_guest;
	}

	public String getId_shop() {
		return id_shop;
	}

	public void setId_shop(String id_shop) {
		this.id_shop = id_shop;
	}

	public String getId_shop_group() {
		return id_shop_group;
	}

	public void setId_shop_group(String id_shop_group) {
		this.id_shop_group = id_shop_group;
	}

	public String getDate_add() {
		return date_add;
	}

	public void setDate_add(String date_add) {
		this.date_add = date_add;
	}

	public String getDate_upd() {
		return date_upd;
	}

	public void setDate_upd(String date_upd) {
		this.date_upd = date_upd;
	}

	@Override
	public PrestaMultiObjectWrapper getMultiObjectWrapper() {
		return new PrestaCustomersWrapper();
	}

	@Override
	public PrestaSingleObjectWrapper getSingleObjectWrapper() {
		return new PrestaCustomerWrapper();
	}


}
